package com.focus.pay.core.exception;

import lombok.Data;

@Data
public class PayException extends Exception {

    /**
     * 异常编号
     */
    private String exceptionCode;

    /**
     * 异常描述
     */
    private String exceptionMsg;

    public PayException(ExceptionEnum exceptionEnum){
        this.exceptionCode=exceptionEnum.getExceptionCode();
        this.exceptionMsg=exceptionEnum.getExceptionMsg();
    }
}
